<template>
	<view style="padding: 17rpx;">
		<!-- 优惠券列表 -->
		<view v-for="coupon in coupons" :key="coupon.id"
			style="background-color: gainsboro;display: flex;height: 230rpx;">
			<img style="width: 160rpx; height: 150rpx; padding: 15rpx;" src="../../../static/logo.png" />
			<view style="writing-mode: vertical-lr;margin-top: 30rpx;width: 1rpx;">..................</view>
			<view style="margin-left: 30rpx;margin-top: 25rpx;">
				<view>{{coupon.description}}</view>
				<view style="display: flex;margin-top: 50rpx;">
					<view style="margin-left: 10rpx; padding-top: 10rpx; font-size: 25rpx; color: red;">
						{{coupon.validPeriod}}</view>
					<button
						style="margin-left: 35rpx; height: 80rpx; color: #fff; background-color: cornflowerblue;">立即使用</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				coupons: [{
						id: 1,
						description: '通用/仅限于 XX 加油站使用',
						validPeriod: '2020.04 至 2020.05.11'
					},
					{
						id: 2,
						description: '通用/仅限于 XX 加油站使用',
						validPeriod: '2020.04 至 2020.05.12'
					},
					{
						id: 2,
						description: '通用/仅限于 XX 加油站使用',
						validPeriod: '2020.04 至 2020.05.12'
					}
				]
			};
		},
		methods: {}
	};
</script>

<style>

</style>